package c03数据类型和运算符;

import org.junit.Test;

public class 替换字符串的反斜杠 {

	public static void main(String[] args) {
		System.err.println("a\\b\\c".replaceAll("\\\\", "/"));
	}

	@Test
	public void replace() {
		String fn = "2-4.docx";
		System.err.println(fn.replace(".docx", ""));
	}
}
